
enum EXITNUM
{
    SOCK_CREATE_ERROR = 1,
    SOCK_BIND_ERROR
};

class Analyze
{
private:
    struct sockaddr_in aim;
    string _ip;
    uint16_t _port;

public:
    Analyze(struct sockaddr_in& temp)
        :aim(temp)
    {
        _ip = inet_ntoa(aim.sin_addr);
        _port = ntohs(aim.sin_port);
    }

    string getip() {return _ip;}
    uint16_t getport() {return _port;}

    ~Analyze()
    {}

};